import os
from tools import all_flow
from global_parameter import ip, port, DB_NAME, common_dir_path, adaption_dir_path, username

# 获取通用算法、自适应算法下所有场景
list_common = os.listdir(common_dir_path)
list_adaption = os.listdir(adaption_dir_path)

# 循环测试通用算法场景
for common_scene in list_common:
    all_flow(ip, port, username, DB_NAME, common_dir_path, common_scene, "通用算法")

# 循环测试自适应算法场景
for adaption_scene in list_adaption:
    all_flow(ip, port, username, DB_NAME, adaption_dir_path, adaption_scene, "自适应算法")
